package com.bwie.alipay.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2024-08-25
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000147682270";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCAV8weGMSI78CNvN5K/C0VhhBql8YfCdy0rwyxVa6bEgahdgHp6o6iFucoTM9n2wP6uI+rVHVsKZXw/oVTcEg/O3XLkq7MLM48xskrNzERA6XCjIIiWR431/I7yx58FCtGbqKtkqgtahddmGfIGa64fqH2Du4qW0YhDZASD+vTlq94upj4lKLh5h3hW6ftViNtQ1giw4EAT+rDXVeIEEh6DBC/RivvhxVHTUkHh5f9jOGztNed6Yo/ONySzVyyH7gksY7riF26uRv8dyQN2/7xP/KjVk60qMtPVbSKtLQTXxsQleGRHPeUqpdps2xfgYh8W+TssnGVGh9aXxHx/vLtAgMBAAECggEADjsuDAxNBq4nGNBficsKqL9T5K3trxVl3rcmXieVE+bcy1yNe8WhiUGm4iYaPXbgqxV6ANJ9rr+xu6ZNXGIv8KsENc2PCl7Rg5W7Ssp062EPKVJxP6PIIQMV/iFYwQNvhQDRkxOXCGoiKyOyJlMKt7R6+xDOwe2bCiE533bafHypAsiL1vrLC+KFyRAz40wy2Ag7Oi8+UFGkvYynVc/rSQmJlu7OZuu3KxHXprMui5k6LKHlV4Fgal+ozW4zUaZmTFhgIlY4Wb2zwGIACwMF0LYMLPUtnwiMRcEHcRY72q+xOgLf6UEN8eE35kvr3df9y46MZS/90OhTUBX4+Qm3gQKBgQDcV+FRINYa1VtbDI3fn74MSW6o4fzPMyc+M6o+BnmRyY2DSI9gSPnJldRXYn0nm2qnuSwg/BZC+jVZxj28ZVeobCIUu1Mkvn93WHZzxqY+pcaGuLSJaFov+w9aVATMy08wUBQgoLpZVLgoMzTSoPAnbVheCCcDvmTkSh+kMkC+4QKBgQCVHKMUEx2uP0kAoqPT8iPMcvMcuehj0pXgwxU/iSda9TrbpxpfXsDvuJ+QOIuTRDu9RwLQTIyCNuJ/D8+Jwmq1sBUCP3v4jhn0vtrfzMqPKVfsiGeN15dya02aN+VzobKRCZDMdDVp+WFNzIAlFBIULCKQcuLmQCzALLOkmSTxjQKBgQDBkT4yTBtq5UXlHYlBC48kMhpRqH2z9GckILUM2hlQNnToAQVbe6BcNBCfV7lE4yZ2A5k9vNc9rZrSq/GuIIU6QwxJlCq9W9CUopUkrj17SZy222pWT+LyxaY+HxM8adq+QYr9AtXSBjflsN5VruZqbIe1y4mio070sh1L3I2+YQKBgGhYv+5+ahjUBJxDNG5PVqnuDx8dIfkpFuVQ33+01SubzPKFf7kZr96Rzme4ikQmTb/o/5kQ2IsPKXVNdSisOsymSi1mi7SmjJdvL+/Jej6w6eyGkCD8q+jQGmA/mXxPvYwtq3zIHdDpSSSOZWaNIxGmyRFYtFv4sNhS7+vRl77JAoGAIxatc3ThnQJhL9DQLsweQ+h+qUaZZoIvljVEILrflfR0/AUCkoDgHMcegQDb8NQoEZ484XvdLVKE5LKBZwmf/ON+BH0xrxABBJPlyIlCtLcisaFrH51TD2FJeRiJzBp5rj8wmBkLZke+y+UlSuJQ7T/ktCu7T/x/XUUhpFUOT9Y=";

    // 支付宝公钥,查看地址：https://open.alipay.com/develop/sandbox/app 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAplho29H+vy0vzoKKTqPLmC2xZ7nKlChLwXFi2l5J/9QyBMxHIMgk8w313jej/Wm/gcobxl6iJY8BjyJtdZ1AmnMxMt9GjVc9vy1W1PCTqMOEbdW399vENYlG7NBjaqKCXy1PDoRkAy8er1Radk+/h5UpRrxTNEG8ubOhhhrFvQNrfq4wKMewEFt3X2GmTAws83fueICGuj3+z79uR7SZYk4FmUibyD7/omRE5XJHcql5gcUPuPVoKxdyCRHm/JMwydZ2U4UoHUDMZH60kexgp0bO12HeueUKhg+2FVo8LcAygneMJ4SrSJ5OA4g2hyANPBtIIpnm+NzsndvramJAWwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://dbf58876.natappfree.cc/alipay/alipayNotify";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://dbf58876.natappfree.cc/alipay/alipayReturn";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝沙箱网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    // 支付宝日志存储地址
    public static String log_path = "D:\\alipayLog";


}